import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const dashboard: AppRouteModule = {
  path: '/goods-manage',
  name: 'Goods-manage',
  component: LAYOUT,
  redirect: '/dashboard/category',
  meta: {
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: t('routes.goods-manage.goods-manage'),
  },
  children: [
    {
      path: 'category',
      name: 'Category',
      component: () => import('@/views/goods-manage/category-manage/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.goods-manage.category-manage'),
      },
    },
    {
      path: 'goods',
      name: 'Goods',
      component: () => import('@/views/goods-manage/goods-manage/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.goods-manage.goods-manage'),
      },
    },
    {
      path: 'demo',
      name: 'demo',
      component: () => import('@/views/goods-manage/demo/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.goods-manage.demo'),
      },
    },
  ],
};

export default dashboard;
